Product : ISaGRAF V3

Date    : 6-March-1996

File    : Fblarray.Manage arrays with a function block.htm

Subject : Manage arrays through a function block

Keywords: C function block - array

____________________________________________________________________

"C" function block to manage arrays could be specified

as follows:

 

inputs:

boolean: write : to indicate you are writing or reading

integer: format: to indicate your are in integer or real

boolean: reset: to put the whole array to 0

integer: dimi: i dimension

integer: dimj: j dimension

integer: Writ_int: integer value to write

real: Writ_float: real value to write

integer: i: i index

integer: j: j index

 

outputs:

boolean: write_ok

integer: Read_int: integer value read

real: Read_float: real value read

 

In internal structure, declare an array with a maximum size,

and in the application, just specify the dimensions you need

____________________________________________________________________

Copyright © 1996-2009 ICS Triplex ISaGRAF Inc. All rights reserved.